import { PetSpecialSkillItem } from "./PetSpecialSkillItem";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { EventName } from "../../../mvc/EventName";
import { DataEvent } from "../../../events/DataEvent";
//class PetSpecialSkillChangeItem
    
    export  class PetSpecialSkillChangeItem extends PetSpecialSkillItem
    {
        constructor()
        {
            super();
            this.doubleClickEnabled = false;
            Dispatcher.removeEventListener(EventName.PetSpecialSkillItemSelect, onSelectHandler);
            Dispatcher.addEventListener(EventName.PetSpecialSkillChangeItemSelect, onSelectHandler);
            return;
        }

        protected /* override */ onClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.PetSpecialSkillChangeItemSelect, {"skillId": _skill.skillId}));
            return;
        }
    }
